package com.geekaca.web.mapper;

import com.geekaca.web.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
//    List<Brand> selectAllBrands();

    List<Brand> selectAllBrands(@Param("brand") Brand brand, @Param("start") Integer start,
                                @Param("pageSize") Integer pageSize);

    List<Brand> selectBrandByPage(Integer start, Integer pageSize);

    //    List<Brand> selectBrandByPageNew(Integer start, Integer end);
    List<Brand> selectBrandByPageNew(Integer start, Integer end);

    int insertBrand(Brand brand);

    int updateBrand(Brand brand);

    int deleteBrand(Integer id);

    List<Brand> selectByCondition(Brand brand);

    Integer selectAllCount(@Param("brand") Brand brand, @Param("start") Integer start,
                       @Param("pageSize") Integer pageSize);

    Integer batchDEl(@Param("ids") Integer[] ids);
}
